<?php slot('group','active'); ?>
<div class="row-fluid">
				<div class="box span12">
					<div class="box-header">
						<h2><i class="icon-edit"></i>修改小组</h2>
						<div class="box-icon"></div>
					</div>
					<div class="box-content">
              <?php if($sf_user->hasFlash('error')): ?>
              <div class="alert alert-error">
                      <button type="button" class="close" data-dismiss="alert">×</button>
                      <strong>错误！</strong>  <?php echo $sf_user->getFlash('error'); ?>
              </div>
              <?php endif; ?>
              <?php if($sf_user->hasFlash('success')): ?>
              <div class="alert alert-success">
                      <button type="button" class="close" data-dismiss="alert">×</button>
                      <strong>操作成功！</strong> <?php echo $sf_user->getFlash('success'); ?>
              </div>
              <?php endif; ?>
                                          
                                            <form class="form-horizontal" action="<?php echo url_for('group/edit'); ?>" method="post" enctype="multipart/form-data">
                                                <input type="hidden" name="id" value="<?php echo $group->getId(); ?>" />
						  <fieldset>
							<div class="control-group ">
								<label class="control-label" for="focusedInput">名称</label>
								<div class="controls">
								  <input class="input-xlarge focused" name="title" type="text" value="<?php echo $group->getName(); ?>" />
                                   <span class="help-inline"></span>
								</div>
							  </div>
                                                      <div class="control-group ">
								<label class="control-label" for="focusedInput">组长</label>
								<div class="controls">
								  <input class="input-medium focused" name="admin" type="text" value="<?php echo $group->getAdmin(); ?>" />
                                   <span class="help-inline"></span>
								</div>
							  </div>
                                                      <div class="control-group">
								<label class="control-label">显示</label>
								<div class="controls">
								  <label class="radio">
									<input type="radio" name="display" id="month_click" value="0"  />
									否
								  </label>
								  <div style="clear:both"></div>
								  <label class="radio">
									<input type="radio" name="display" id="day_click" value="1" checked="" />
									是
								  </label>
								</div>
							  </div>
                            <div class="control-group">
							  <label class="control-label" for="fileInput">图标</label>
							  <div class="controls">
								<input class="input-file uniform_on" name="cover" type="file" />
                                                                <br/>
                                                                <img src="<?php echo $group->getCover(); ?>" width="200" height="100" />
							  </div>
							</div>                 
                                                      
                            <div class="control-group hidden-phone">
							  <label class="control-label" for="textarea2">小组介绍</label>
							  <div class="controls">
								<textarea id="edu" name="summary" style="width:650px;height:100px;"><?php echo $group->getDescripts(); ?></textarea>
                                                                <span class="help-inline">摘要字数限制为：500个字符，1个汉字为2个字符</span>
							  </div>
							</div>
                            
				<div class="form-actions">
							  <input type="submit" class="btn btn-primary" value="保存数据" />
							  <button type="reset" class="btn" onclick="window.location.href='<?php echo url_for('group/index'); ?>';">返回列表</button>
							</div>
						  </fieldset>
						</form>
					</div>
				</div><!--/span-->

			</div>
<script type="text/javascript">

</script>